/*
 * @Author: yuanqingqing 1194367511@qq.com
 * @Date: 2024-05-09 09:51:02
 * @LastEditors: miteng 973203639@qq.com
 * @LastEditTime: 2024-07-09 13:54:44
 * @Description:
 * Copyright (c) 2024-present HBIS Digital Technology Co.,Ltd. All rights reserved.
 */
const CDN = 'https://lib.baomitu.com/'; // CDN Homepage: https://cdn.baomitu.com/
// const publicPath = process.env.BASE_URL;

function splicingPluginUrl(PluginName: string, version: string, fileName: string): string {
  return `${CDN}${PluginName}/${version}/${fileName}`;
}

export default {
  beautifierUrl: splicingPluginUrl(
    'js-beautify',
    '1.13.5',
    'beautifier.min.js'
  ),
  monacoEditorUrl: splicingPluginUrl('monaco-editor', '0.19.3', 'min/vs'), // 使用 monaco-editor CDN 链接
  // monacoEditorUrl: `${publicPath}libs/monaco-editor/vs`, // 使用 monaco-editor 本地代码
  tinymceUrl: splicingPluginUrl('tinymce', '5.7.0', 'tinymce.min.js')
};
